home *** CD-ROM | disk | FTP | other *** search
- unit main;
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- StdCtrls, Base64;
-
- type
- TForm1 = class(TForm)
- eInFile: TEdit;
- eOutFile: TEdit;
- Label1: TLabel;
- Label2: TLabel;
- bnChooseFile1: TButton;
- bnChooseFile2: TButton;
- bnEncode: TButton;
- bnDecode: TButton;
- OpenDialog1: TOpenDialog;
- procedure bnChooseFile1Click(Sender: TObject);
- procedure bnChooseFile2Click(Sender: TObject);
- procedure bnEncodeClick(Sender: TObject);
- procedure bnDecodeClick(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- Form1: TForm1;
-
- implementation
-
- {$R *.DFM}
-
- procedure TForm1.bnChooseFile1Click(Sender: TObject);
- begin
- if OpenDialog1.Execute then
- begin
- eInFile.Text:=OpenDialog1.FileName;
- end;
- end;
-
- procedure TForm1.bnChooseFile2Click(Sender: TObject);
- begin
- if OpenDialog1.Execute then
- begin
- eOutFile.Text:=OpenDialog1.FileName;
- end;
-
- end;
-
- procedure TForm1.bnEncodeClick(Sender: TObject);
- begin
- encode(eInFile.Text,eOutFile.Text);
- end;
-
- procedure TForm1.bnDecodeClick(Sender: TObject);
- begin
- decode(eInFile.Text,eOutFile.Text);
- end;
-
- end.
-